home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global gCurrLabel, gPlaySound, audioPath
- if the frameLabel <> 0 then
- gCurrLabel = the frameLabel
- end if
- if gPlaySound then
- gPlaySound = 0
- soundFile = getAudioFile(the frame)
- sound playFile 1, audioPath & soundFile & ".AIF"
- end if
- end
-
- on exitFrame
- global gPlaySound, gMenuButton, gMenuExit, gTourForwardArrow, gTourBackArrow
- repeat with rc in [gMenuButton, gMenuExit, gTourForwardArrow, gTourBackArrow]
- doRollover(rc)
- end repeat
- if soundBusy(1) then
- go(the frame)
- else
- repeat with z = 2 to 10
- if not (the memberNum of sprite z = 0) then
- sprite(z).visible = 1
- end if
- end repeat
- updateStage()
- gPlaySound = 1
- go(the frame + 1)
- end if
- end
-